Skip to content

Conversation

@cspotcode
Copy link
Collaborator

@cspotcode cspotcode commented Oct 7, 2021

Fixes #1488

Can add a fairly quick regression test. Need to devise a project that triggers the same situation in the original bug report: attempting to load a .js file with allowJs turned on where a new package.json needs to be fetched into cache. This will cause the original bug, so we can prove this fix solves it.

Ideally would write a test that directly detects any require() calls happening anywhere without our require() hooks, but I don't have time for that.

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #1489 (5291105) into main (8a9ae84) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
dist-raw/node-package-json-reader.js 83.33% <ø> (-0.88%) ⬇️

@cspotcode cspotcode merged commit b255b0e into main Oct 10, 2021
@cspotcode cspotcode added this to the 10.3.0 milestone Oct 10, 2021
@cspotcode cspotcode deleted the fix-1488 branch October 11, 2021 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allowJs may cause circular dependency error/warning in ./dist-raw

2 participants